'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
  async index () {
    const { ctx } = this;
    // var data = await ctx.model.User.find({})
    // console.log(data);
    
    // ctx.body = 'hi, home';
    var data = await ctx.service.user.find()
    await ctx.render("index.html",{res:'msg'})
    console.log(data);
  }
}

module.exports = HomeController;
